import java.io.IOException;

public class Test {

	public static void main(String[] args) throws CloneNotSupportedException, ClassNotFoundException, IOException {
		
		Prototype p1 = new Prototype();
		p1.setString("asdfas");
		p1.setObj(new SerializableObject());
		
		Prototype p2 = p1.clone();
		Prototype p3 = p1.cloneDeep();
		
		System.out.println(p1);
		System.out.println(p2);
		System.out.println(p3);
		
		System.out.println(p1.getString() == p2.getString());
		System.out.println(p1.getString() == p3.getString());
	}
}
